package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.PushMsg;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;
import java.util.List;

public interface PushMsgDao extends Repository<PushMsg,Integer> {

    Page<PushMsg> findAll(Specification<PushMsg> spec,
                          Pageable pageable);

    List<PushMsg> findAll(Specification<PushMsg> spec,
                          Limitable limitable);
    PushMsg save(PushMsg bean);

    PushMsg findOne(Integer id);

    void delete(PushMsg bean);

}
